﻿//移动邮件
/****************************************************/
var btnSrc
function showMenu(strBtn)
{  
    btnSrc = document.getElementById(strBtn)
    btnSrc.className = "on";
    var divmenu = document.getElementById("divmenu");    
    divmenu.style.display = "";   
    document.onclick = HideDiv;
    
}
function HideDiv(flag)
{
    var tmp = event.srcElement.parentElement;
    
    if(flag || tmp == null || tmp.id != "divmenu")
    {
        document.getElementById("divmenu").style.display = "none";
        document.onclick = null;
        btnSrc.className = "";
        btnSrc = null;
    }    
   
}


/**************************************************/



